package main

import (
	"fmt"
	"os"
	"strconv"
	"time"
)

func main() {

	//	np := runtime.NumCPU()
	fmt.Println("begin")
	np, err := strconv.Atoi(os.Args[1])
	if err != nil {
		panic(err)
	}

	myMap := make(map[int][]int64)

	for i := 0; i < np*100; i++ {
		a := make([]int64, 1024*1024, 1024*1024)
		myMap[i] = a
	}

	for {
		fmt.Println("sleeping...")
		time.Sleep(1000 * time.Second)
	}
}
